matrix chain multiplication for gate

join shbcf.ru